package com.finance_provider.mapper;

import com.entity.Payment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/23 8:51
 */
@Mapper
public interface PaymentMapper {

    /**
     * 添加付款信息
     * @param payment
     * @return
     */
    Boolean addPayment(Payment payment);

    /**
     * 修改付款信息
     * @param payment
     * @return
     */
    Boolean updatePayment(Payment payment);

    /**
     * 多条件查询付款信息
     * @param payment
     * @return
     */
    List<Payment> queryPayment(Payment payment);

    /**
     * 根据id查询付款信息
     * @param id
     * @return
     */
    Payment queryPaymentId(Long id);

    /**
     * 根据id删除付款信息
     * @param id
     * @return
     */
    Boolean deletePaymentId(Long id);

}
